/*                                                              *
 * Project name : "Meteor" engine                               *
 * Version      : 1.8                                           *
 * Date         : 2000                                          *
 *                                                              *
 * Copyright    : dReddi                                        *
 */

#ifndef CGAME_H
#define CGAME_H

#include "gameai.h"

// Private defines

#define MAX_CREDITS_IMAGES              8

// CMyGame class

class CMyGame:public CGame {
    public:
        
        virtual M_int   Init(M_void);
        virtual M_int   Init2(M_void);
        virtual M_int   Done(M_void);
        virtual M_void  Timer(M_void);
        virtual M_void  Render2d(M_void);
        virtual M_void  ParseExternalCommand(M_ExtCommand*);
        virtual M_void  ParseConsoleCommand(M_int,M_char**);

    private:
        
        M_uint          MenuWidth;
        M_uint          MenuFontsWidth,MenuFontsHeight;
        M_int           MenuActive;
        M_uint          MenuLevel,MenuSel;
        M_int           ShowFPS;
        M_int           ShowCredits;
        M_uint          CurCreditsImage;
        M_uint          CurCreditsTime;
        M_float         CurCreditsAlpha;
        M_uint          CreditsImages[MAX_CREDITS_IMAGES];
        M_uint          PlayerActorHandle;
        
        M_int           FileExists(M_char*);
        M_char*         Find3dfxOpenGLDriver(M_void);
        M_void          MenuBehaviour(M_short);
};

#endif
